package com.chapter4.duotai.demo2;

public class Riflemen extends Unit{
    public Riflemen(){
        //调用父类构造方法
        super(100,10);
    }

    //重写父类方法
    public void move(){
        System.out.println("Riflemen move");
    }
}
